<template>
  <div>
    <ul class="staus">
      <li v-for="(item,index) in data" :key="index">
        <p class="title">{{item.title}}</p>
        <p class="cource_xq">
          <van-icon class="icon" name="clock-o" />
          {{item.start_play_date}} ~ {{item.end_play_date }} |
          共{{item.section_num}}课时
        </p>
        <div class="hour">
          <div class="hour_tiem"></div>
          <span class="hour_xq">已学习{{item.progress_rate}}%</span>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Array
    }
  },
  components: {},
  mounted() {
    document.body.style.background = "#fff";
  },
  data() {
    return {};
  }
};
</script>

<style scoped>
.hour_xq {
  padding-left: 10px;
}
.hour_tiem {
  width: 90px;
  height: 4px;
  background: #eee;
}
.hour {
  color: #777;
  padding-left: 10px;
  display: flex;
  align-items: center;
}
.cource_xq {
  padding-left: 10px;
  /* //   margin-top: -10px; */
  display: flex;
  align-items: center;
  color: #777;
}
.cource_xq > .icon {
  margin-right: 5px;
}
.staus {
  width: 90%;
  margin: 0 auto;
}
.staus > li {
  border: 1px rgb(230, 230, 230) solid;
  height: 127px;
  margin-top: 15px;
  border-radius: 5px;
}
.staus > li > .title {
  font-size: 16px;
  padding-left: 10px;
}
</style>